package com.hzit.mmcb.core.controller.admin;


import com.hzit.common.result.R;
import com.hzit.mmb.base.utils.JwtUtils;
import com.hzit.mmcb.core.hfb.RequestHelper;
import com.hzit.mmcb.core.pojo.entity.LendItem;
import com.hzit.mmcb.core.pojo.vo.InvestVO;
import com.hzit.mmcb.core.service.LendItemService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 标的出借记录表 前端控制器
 * </p>
 *
 * @author ljh
 * @since 2024-08-27
 */
@RestController
@RequestMapping("/admin/core/lendItem")
@Api(tags = "投标")
public class AdminLendItemController {
    @Autowired
    public LendItemService lendItemService;

    @GetMapping("/list/{id}")
    @ApiOperation("获取投标项信息")
    public R list(@PathVariable Long id){
        List<LendItem> lendItems=lendItemService.listByLendId(id);
        return R.ok().data("list",lendItems);
    }
}

